body {
  margin: 0;
  padding: 0;
  height: 100%;
}

html {
  font-family: Microsoft YaHei, monospace;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

body {
  background-color: #0b122e;
  color: #fff;
  position: relative;
  font-family: Microsoft YaHei, monospace;
}

table {
  border-collapse: collapse;
}

img {
  vertical-align: middle;
}

ul {
  margin-block-start: 0;
  margin-block-end: 0;
  padding-inline-start: 0;
  padding: 4px 6px;
}

li {
  list-style-type: none;
  margin: 0 6px;
}

a {
  text-decoration: none;
  color: aqua;
}

.clearfix:before,
.clearfix:after {
  content: '';
  display: table;
}

.clearfix:after {
  clear: both;
  overflow: hidden;
}

.clearfix {
  *zoom: 1;
}

::-webkit-scrollbar {
  /*滚动条整体样式*/
  width: 8px; /*高宽分别对应横竖滚动条的尺寸*/
  height: 1px;
}

::-webkit-scrollbar-thumb {
  /*滚动条里面小方块*/
  border-radius: 10px;
  background-color: #32a8e6;
  background-image: -webkit-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.2) 25%,
      transparent 25%,
      transparent 50%,
      rgba(255, 255, 255, 0.2) 50%,
      rgba(255, 255, 255, 0.2) 75%,
      transparent 75%,
      transparent
  );
}

::-webkit-scrollbar-track {
  /*滚动条里面轨道*/
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
  background: #0e1d3b;
  border-radius: 8px;
}

#header {
  width: 100%;
  height: 90px;
  background: url(../images/bg_top.png) center no-repeat;
  text-align: center;
  font-size: 36px;
  color: #00f6ff;
  line-height: 90px;
  margin: 0 auto;
}

#content {
  /*width: 1860px;*/
  /*height: 100%;*/
  margin: 10px;
  /*margin-top: 20px;*/
  height: 100%;
  display: flex;
}

#content .content_left {
  width: 385px;
  height: 100%;
}

.content_left .title {
  width: 385px;
  height: 40px;
  color: #00f6ff;
  font-size: 18px;
  line-height: 40px;
  background: url(../images/bottom_line.png) bottom no-repeat;
  text-align: center;
}

.content_left .title img {
  vertical-align: middle;
}

.content_left .panel_count {
  width: 365px;
  height: 180px;
  padding: 10px;
  float: left;
  background: url(../images/zuoyi.png) top no-repeat;
}

.content_left .panel_state {
  width: 385px;
  height: 330px;
  padding: 10px;
  float: left;
  background: url(../images/zuo2.png) no-repeat;
}

.panel_state .state {
  width: 385px;
  height: 270px;
  float: left;
}

.content_left .panel-device {
  width: 385px;
  height: 425px;
  float: left;
  background: url(../images/hangye.png) no-repeat;
}

.panel-device .device-tree {
  width: 365px;
  height: 335px;
  padding: 10px;
  float: left;
  overflow: auto;
  border: 0;
  outline: 0;
}

.device-tree .option {
  margin: 8px 0;
  width: 100%;
}

.device-tree .device-name {
  width: 50%;
}

.device-tree .device-name a {
  margin: 5px;
  color: #00fcff;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.device-tree .device-name a:hover {
  cursor: pointer;
  font-weight: bold;
}

.device-tree .event-flag {
  width: 10%;
  display: flex;
  align-items: center;
}

.device-tree .event-flag div {
  width: 16px;
  height: 16px;
}

.device-tree .event-flag .heart {
  display: none;
  background: url(../icons/xintiao.svg) no-repeat;
}

.device-tree .event-flag .alarm {
  display: none;
  background: url(../icons/baojing.svg) no-repeat;
}

.device-tree .event-flag .data {
  display: none;
  background: url(../icons/jieshou.svg) no-repeat;
}

.device-tree select {
  width: 40%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 2px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #00fcff;
  margin-left: auto;
}

.device-tree .device-detail {
  width: 10%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #00fcff;
}

#content .content_center {
  flex-grow: 1;
  margin: 0 20px;
}

.content_center .center_top {
  /*width: 1050px;*/
  height: 650px;
  /*float: left;*/
  border: 1px #044fa0 solid;
  /*background: url(../images/center01.png) no-repeat;*/
}

.content_center #viewport {
  background-color: #0e1d3bba;
  position: absolute;
}

.content_center #toolbar {
  position: absolute;
  display: flex;
  margin: 10px;
  padding: 10px;
}

#toolbar #tool-handle {
  width: 32px;
  height: 32px;
  background: url(../images/icon01.png) center no-repeat;
  background-size: 80%;
}

#toolbar #tool-body {
  margin-left: 10px;
  /*border: 1px red solid;*/
  display: flex;
}

#toolbar .tool-button {
  margin-right: 10px;
  width: 32px;
  height: 32px;
}

#toolbar .tool-button:hover {
  cursor: pointer;
  color: #ffffff;
}


/* 弹出框 */
#viewport .dialog {
  background-color: rgb(12 29 59 / 75%);
  font-size: 14px;
  position: absolute;
  left: 300px;
  top: 50px;
  display: block;
  border: 1px solid #0450a0;
  color: aqua;
  border-radius: 4px;
}

/* 设备右键菜单 */
#device-menu-panel {
  --menu_background: rgba(47, 51, 56, 0.9);
  --menu_text_color: #ccc;
  --shadow_medium: rgba(47, 51, 56, 0.9);
  --font_color: aqua;
  /* background-color: var(--menu_background); */
  font-size: 12px;
  display: none;
  position: absolute;
  left: 300px;
  top: 50px;
  z-index: 9999999;
}

#device-menu-panel .title {
  box-shadow: 1px 1px 4px 0 rgb(29 137 136 / 75%);
  background: var(--menu_background);
  position: relative;
  padding: 3.5px 12px;
  display: table;
  /* -webkit-box-align: center; */
  /* align-items: center; */
  border-radius: 4px;
  font-size: 14px;
  color: #00fcff;
}

#device-menu-panel .menu-button-panel, .menu-drop-panel {
  box-shadow: 1px 1px 4px 0 rgb(29 137 136 / 75%);
  background: var(--menu_background);
  border-radius: 4px;
  padding: 2.5px 12px;
  display: flex;
  margin-top: 5px;
  align-content: center;
  width: fit-content;
}

#device-menu-panel .menu-button-panel .tool-button {
  width: 30px;
}

/* 设备标签下拉菜单 */
.menu-drop-panel .label-root, .split, .function-root {
  display: inline-flex;
  align-items: center;
  height: 28px;
  line-height: 24px;
  color: var(--font_color);
  font-size: 14px;
}

/* 分割线 */
.menu-drop-panel .split {
  /*border-left: 1px aqua solid;*/
  margin: 0 8px;
  border-left: 1px solid rgb(29 137 136 / 75%);
  box-shadow: 0 0 10px 1px rgb(29 137 136 / 75%);
}

/*箭头向上、向下*/
.label-root .to-up, .to-down, .function-root .to-up, .to-down {
  width: 0;
  height: 0;
  margin-left: 4px;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
}

/*箭头向上*/
.label-root .to-up, .function-root .to-up {
  border-bottom: 6px solid var(--font_color);
}

/*箭头向下*/
.label-root .to-down, .function-root .to-down {
  border-top: 6px solid var(--font_color);
}

.label-root .dropdown, .function-root .dropdown {
  position: absolute;
  top: 110px;
  background: var(--menu_background);
  border-radius: 4px;
  padding: 2px 6px;
  width: fit-content;
}
.label-root .dropdown {left: 0;}
.function-root .dropdown {left: 92px;}

.label-root .dropdown .arrow, .function-root .dropdown .arrow {
  width: 0;
  height: 0;
  border-bottom: 7px solid var(--menu_background);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  top: -7px;
  left: 7px;
  position: absolute;
}

.label-root ul, .function-root ul {
  padding-inline-start: 0;
  margin-block-start: 0;
  margin-block-end: 0;
}

.label-root ul > li, .function-root ul > li {
  border-bottom: 1px solid;
}

.label-root a, .function-root a {
  text-decoration: none;
}

.label-select-dialog ul {
  padding: 4px 6px;
}

.label-select-dialog ul > li {
  border-bottom: 1px solid;
  margin: 2px 6px;
}

/* 标签框的头 */
.label-dialog .header, .function-dialog .header {
  /*height: 32px;*/
  border-bottom: 1px solid #0450a0;
  text-align: center
}

.label-dialog .header span, .function-dialog .header span {
  font-family: Arial, Helvetica, sans-serif;
  font-size: larger;
  line-height: 32px;
  margin: 0 24px;
}

.label-dialog .header button {
  background-color: red;
}

#toolbar #search-button {
  background: url("../images/search.png") center no-repeat;
  background-size: 80%;
}

#topology-btn {
  position: absolute;
  right: 30px;
  top: 30px;
  text-decoration: none;
  color: #07f5fe;
  font-size: larger;
  border: 1px #07f5fe solid;
  padding: 4px;
}

#search-panel {
  flex-direction: column !important;
  align-items: center !important;
}

#search-panel #search-box {
  margin-top: 20px !important;
  padding: 2px 20px !important;
  height: 38px !important;
  width: 300px !important;
  border-radius: 38px !important;
  background-color: #04509fc4 !important;
  border: 1px #00fcff solid !important;
  outline: none !important;
  color: #00fcff !important;
}

/* 搜索框-获取焦点时 */
#search-panel #search-box:focus {
  border: 0;
}

#search-panel #candidate {
  margin-top: 10px;
  padding: 10px 20px;
  border: 1px #00fcff solid !important;
  outline: none !important;
  color: #00fcff !important;
  z-index: 9999;
}

#search-panel #candidate a {
  margin: 5px;
  color: #00fcff;
  text-decoration: none;
}

/* 设备拓扑关系 start */
#toolbar #topology-button {
  background: url("../icons/tuopu.png") center no-repeat;
  background-size: 80%;
}

/* 设备拓扑关系 end */

/* 标签删除按钮 start */
#toolbar #label-remove-button {
  background: url("../images/biaoqian.png") center no-repeat;
  background-size: 80%;
}
/* 标签删除按钮 end */

/* 部署重载按钮 start */
#toolbar #deploy-reload-button {
  background: url("../icons/deploy-reload.png") center no-repeat;
  background-size: 80%;
}
/* 部署重载按钮 end */

/* 显示阴影按钮 start */
#toolbar #show-shadow-button {
  background: url("../icons/show-shadow.png") center no-repeat;
  background-size: 80%;
}
/* 显示阴影按钮 end */

/* 场景复位按钮 start */
#toolbar #scene-reset-button {
  background: url("../icons/scene-reset.png") center no-repeat;
  background-size: 80%;
}
/* 场景复位按钮 end */

/* 设备详情弹框 start */
.TabbedPanel {
  /*border: 1px #00f6ff solid;*/
  height: 100%;
  width: 100%;
}

.TabbedPanel .Tabs {
  border-bottom: 1px solid #00fcff;
  border-left: 1px solid #00fcff;
}

.TabbedPanel .Tabs .Tab {
  vertical-align: middle;
  padding: 5px 10px;
  text-transform: uppercase;
  color: #00fcff;
  border-top: 1px solid #00fcff;
  border-right: 1px solid #00fcff;
  background-color: #044fa070;
}

.TabbedPanel .Tab.selected {
  color: #ffffff;
  background-color: #32a8e6db;
}

.Panel .Row {
  padding: 6px 20px;
}

.function-panel {
  border-top: 1px #0ffcff solid;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.function-panel button {
  outline: none;
  background: transparent;
  border: 1px solid aqua;
  border-radius: 40px;
  color: aqua;
  padding: 6px;
  width: 90%;
  margin-top: 12px;
  box-shadow: 0 0 8px 0 aqua;
}

.function-panel button:hover {
  cursor: pointer;
  background: rgba(97, 151, 183, 0.51);
}

.function-panel .funcParam {
  font-size: 14px;
  padding: 6px !important;
  border-radius: 3px;
  background: transparent;
  border: 1px aqua solid !important;
  outline: none;
  color: aqua;
}

/* 设备详情弹框 end */
#search-panel #candidate a:hover {
  cursor: pointer;
  font-weight: bold;
}

/* 中间下方 */
.content_center .center_bot {
  /*width: 990px;*/
  height: 280px;
  /*float: left;*/
  /*background: url(../images/center02.png) no-repeat;*/
  /*margin-top: 20px;*/
  /*padding: 10px 30px;*/
}

/* 方案列表 table */
.panel-table {
  text-align: left;
  color: #ccc;
  border: 1px #0d48e0 solid;
  margin: 0 auto !important;
  width: 98%;
  margin-top: 10px !important;
  padding: 0.5rem 0 !important;
  font-size: 1.2rem;
}

.panel-table thead {
  text-align: center;
}

.panel-table tr {
  text-align: center;
}

/* 方案列表标题 */
.panel-table-title {
  height: 36px;
  background-color: #0e4ae0;
}

tr.panel-table-thead-column td {
  color: #00fcff;
  font-size: 16px;
  padding: 5px 5px;
}

tr.panel-table-tbody {
  border: 1px #0e4ae0 solid;
  padding: 0.5rem 0;
}

tr.panel-table-tbody:hover {
  background: #375381;
  color: #00fcff;
}

tr.panel-table-tbody button {
  cursor: pointer;
  color: #ffffff;
  border: none;
  margin: 2px;
}

.scheme-list-b1 {
  background: #ff0000;
}

.scheme-list-b2 {
  background: #2897c4;
}

.scheme-list-b3 {
  background: #36791a;
}

#content .content_right {
  width: 385px;
  height: 100%;
}

.content_right .panel-alarm-count {
  width: 325px;
  height: 145px;
  line-height: 20px;
  float: left;
  background: url(../images/zuoyi.png) top no-repeat;
  padding: 35px 30px 0 30px;
}

.panel-alarm-count .device-fault {
  width: 134px;
  height: 110px;
  background: url(../images/report01.png) center no-repeat;
  float: left;
  text-align: center;
  padding-top: 24px;
}

.panel-alarm-count .data-alarm {
  width: 134px;
  height: 110px;
  background: url(../images/report02.png) center no-repeat;
  float: right;
  text-align: center;
  padding-top: 24px;
}

.panel-alarm-count p {
  font-weight: bold;
  font-size: 18px;
  color: #ff0000;
}

.panel-alarm-count small {
  font-size: 24px;
}

/* 报警记录 */
.content_right .panel-alarm-record {
  width: 385px;
  height: 330px;
  margin-top: 20px;
  float: left;
  background: url(../images/bg_report.png) no-repeat;
}

.content_right .title {
  width: 385px;
  height: 40px;
  color: #00f6ff;
  font-size: 20px;
  line-height: 40px;
  background: url(../images/bottom_line.png) bottom no-repeat;
  text-align: center;
}

.content_right .title img {
  vertical-align: middle;
}

.panel-alarm-record {
  width: 350px;
  height: 240px;
  padding: 10px;
  font-size: 16px;
  overflow: hidden;
}

.panel-alarm-record .alarm-list {
  height: 260px;
  overflow: auto;
  margin: 0;
  width: calc(100% - 12px);
  color: #00f6ff;
  outline: none;
}

.alarm-list .option {
  margin: 8px 0;
  width: 100%;
  overflow: auto;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.li01 {
  background: url(../images/new_list01.png) left center no-repeat;
}

.li02 {
  background: url(../images/new_list02.png) left center no-repeat;
  color: #ff0000;
}

/* 数据记录 */
.content_right .panel-data-record {
  width: 385px;
  height: 420px;
  margin-top: 20px;
  float: left;
  background: url(../images/bg_data.png) no-repeat;
}

.panel-data-record {
  width: 365px;
  height: 330px;
  float: left;
  padding: 10px;
}

.panel-data-record .data-list {
  height: 345px;
  overflow: auto;
  margin: 0;
  width: calc(100% - 12px);
  color: #00f6ff;
  outline: none;
}

.data-list .option {
  margin: 8px 0;
  width: 100%;
  overflow: auto;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 数据统计 */
.content_right .panel-data-count {
  width: 385px;
  height: 420px;
  float: left;
  background: url(../images/bg_data.png) no-repeat;
}

.panel-data-count {
  width: 365px;
  height: 330px;
  float: left;
  padding: 10px;
}

.panel-data-count .data-count {
  height: 345px;
  overflow: auto;
  margin: 0;
  width: calc(100% - 12px);
  color: #00f6ff;
  outline: none;
}